const { merge } = require("webpack-merge");
const webpackConfigBase = require('./webpack.config')
const TerserPlugin = require('terser-webpack-plugin');

process.env.NODE_ENV = 'production'
module.exports = merge(webpackConfigBase, {
  mode: 'production', // 生成模式
  devtool: false,
  optimization: {
    minimizer: [
      new TerserPlugin(),
    ],
  }
})